package com.papa91.arc;
/*package com.papa91.arc;

import com.papa91.arcapp.GameListAct;

import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.ImageButton;
import android.widget.Toast;

public class EmuMainActivity extends Activity{
private static final String IS_RUN_ED = "isRunEd";
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		this.requestWindowFeature(Window.FEATURE_NO_TITLE);

		LayoutInflater inflater = LayoutInflater.from(this);
		View mainView = inflater.inflate(R.layout.main_layout, null);
		setContentView(mainView);
		ImageButton startButton = (ImageButton)mainView.findViewById(R.id.btn_start_game);
		startButton.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				
				// intent.setClass(this, EmuActivity.class);
				SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(EmuMainActivity.this);
				boolean firstRun = sp.getBoolean(IS_RUN_ED, false);
				if(firstRun)
				{
					Toast.makeText(EmuMainActivity.this, "游戏只能体验一次哦", 1).show();
					return;
				}
				Editor edit = sp.edit();
				edit.putBoolean(IS_RUN_ED, true);
				edit.commit();
				Intent intent = new Intent();
				intent.setClass(EmuMainActivity.this, EmuActivity.class);
				startActivityForResult(intent, 0);

			}
		});
		ImageButton openFileListButton = (ImageButton)mainView.findViewById(R.id.btn_start_file_list);
		openFileListButton.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intent = new Intent();
				intent.setClass(EmuMainActivity.this, GameListAct.class);
				startActivityForResult(intent, 0);
			}
		});
	 //   this.initBanner();
	   // this.bv.loadAD();
	//	info = new MyBannerInfo(mFrameLayout, this,"1105599035","9050817479861216");
	
		
	}
}
*/